


<?php //$base_url="http://localhost/editor/"; ?>
	<script type="text/javascript" src="ckeditor.js"></script>
    <script type="text/javascript" src="../../ck/ckeditor.js"></script>
    <script type="text/javascript" src="../../plugins/dialog/dialogDefinition.js"></script>
	<script src="../../ck/_samples/sample.js" type="text/javascript"></script>
	<link href="../../ck/_samples/sample.css" rel="stylesheet" type="text/css" />

<div style="width:700px;float:left;">
		<form name="a" action="" method="post" onsubmit="up();return check()">
  			<textarea cols="70" id="editor1" name="editor1" rows="15"></textarea>
            <input type="submit" value="gui" />
        </form>
			<script type="text/javascript">
			//<![CDATA[

				/*CKEDITOR.replace( 'editor1',
					{
						fullPage : true
					});
					*/
					CKEDITOR.replace('editor1',{height:200,resize_enabled:true,
					filebrowserBrowseUrl : '../../find/ckfinder.html',
        filebrowserImageBrowseUrl : '../../find/ckfinder.html?Type=Images',
        filebrowserFlashBrowseUrl : '../../find/ckfinder.html?Type=Flash',
        filebrowserUploadUrl : '../../find/core/connector/php/connector.php?command=QuickUpload&type=Files',
        filebrowserImageUploadUrl : '../../find/core/connector/php/connector.php?command=QuickUpload&type=Images',
        filebrowserFlashUploadUrl : '../../find/core/connector/php/connector.php?command=QuickUpload&type=Flash',

					scayt_autoStartup:false,disableNativeSpellChecker:false,skin:'kama',uiColor:'#dedede',toolbar:[['Source','-','Bold','Italic','Underline','TextColor','BGColor','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','Find','Replace','-','Undo','Redo','-','SelectAll','-','Link','Unlink','Anchor','Image','Flash','Tabale','Smiley','-','Scayt','-','NumberedList','BulletedList','-','Cut','Copy','Paste','PasteText','PasteFromWord','-','Styles','Font','FontSize']]});
		
		
		
		

		


			//]]>
			</script>
	</div>

<script>
function up(){
    for ( instance in CKEDITOR.instances )
        CKEDITOR.instances[instance].updateElement();
}

function check()
{
	
	var a=document.a.editor1.value;
	if(a=='')
	alert('rong');
	return false;
}
</script>
